<template>
  <view class="page">
    <slot></slot>
    <ed-loading></ed-loading>
  </view>
</template>

<script>
  export default {
    name:"page",
    data() {
      return {
        
      };
    },
    beforeMount() {
     uni.$off('showLoading');
     uni.$off('hideLoading');
     uni.$on('showLoading',(text)=>{
       uni.showLoading({
         title:text||''
       })
     })
     uni.$on('hideLoading',(animate)=>{
       uni.hideLoading();
     })
    }
  }
</script>

<style>

</style>